package code;

public class Main {

	public static void main(String[] args) {
		
		int portNumber;

		try
		{
			portNumber = Integer.parseInt(args[0]);
		}
		catch (Exception e) {
			portNumber = 8000;
		}		
		
		new BaseController(new TUI(), new TCPConnector(portNumber), new WeightController()).listenForInput();
	
		
	}

}
